package cn.stylefeng.guns.modular.basic.mapper;

import cn.stylefeng.guns.modular.basic.entity.BasicArea;
import cn.stylefeng.guns.modular.basic.model.params.BasicAreaParam;
import cn.stylefeng.guns.modular.basic.model.result.BasicAreaResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 库区表 Mapper 接口
 */
public interface BasicAreaMapper extends BaseMapper<BasicArea> {

    /**
     * 获取列表
     *
     * @author zhucx
     * @Date 2019-07-01
     */
    List<BasicAreaResult> customList(@Param("paramCondition") BasicAreaParam paramCondition);

    /**
     * 获取map列表
     *
     * @author zhucx
     * @Date 2019-07-01
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") BasicAreaParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author zhucx
     * @Date 2019-07-01
     */
    Page<BasicAreaResult> customPageList(@Param("page") Page page, @Param("paramCondition") BasicAreaParam paramCondition, @Param("condition") String condition, @Param("deptId") Long deptId
    		,@Param("operateId")Long operateId);

    /**
     * 获取分页map列表
     *
     * @author zhucx
     * @Date 2019-07-01
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") BasicAreaParam paramCondition);

	List<BasicArea> listByDeptId(@Param("deptId") Long deptId);

	List<BasicAreaResult> findListBySpec(@Param("paramCondition")BasicAreaParam param, @Param("deptId")Long deptId, @Param("operateId")Long operateId);

	BasicAreaResult findBySpec(@Param("paramCondition")BasicAreaParam param, @Param("deptId")Long deptId, @Param("operateId")Long operateId);

}
